{% extends "base.html" %}

{% block content %}
    <h2>待审批</h2>
     <div style="overflow:auto;height=491">
      <table class="list" width="100%">
        <thead>
          <tr>
            <th>报表标题</th>
            <th>报表关键字</th>
            <th>报表创建人</th>
            <th>报表类型</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {%for unapprove in list.object_list%}
          <tr>
          <td>{{unapprove.schedule_title}}</td>
            <td>{{unapprove.schedule_keyword}}</td>
            <td>{{unapprove.schedule_created_by_info}}</td>
            <td>{{unapprove.schedule_type_name}}</td>
            <td>{{unapprove.schedule_start_date|date:"Y-m-d"}}</td>
            <td>{{unapprove.schedule_end_date|date:"Y-m-d"}}</td>
            <td><a href="/schedule/view/{{unapprove.schedule_id}}" target="navTab" rel="view_schedule" title="查看计划">查看计划</a>{% if not unapprove.status%}&nbsp;&nbsp;<a href="/approved/do/{{unapprove.schedule_id}}{% if unapprove.approve_id%}/{{unapprove.approve_id}}{%endif%}" target="navTab" rel="approve_page"  >填写批复</a>&nbsp;&nbsp;<a href="/approved/commit/{{unapprove.schedule_id}}{% if unapprove.approve_id%}/{{unapprove.approve_id}}{%endif%}" target="navTab" rel="approve_page"  >提交批复</a>{%endif%}</td>
          </tr>
          {%endfor%}
        </tbody>
      </table>
    </div>
    <div class="panelBar hover">
          <div class="pagination" targettype="navTab" totalcount="{{list.count}}" numperpage="10" pagenumshown="10" currentpage="{{list.number}}"></div>
    </div>
{% endblock %}